home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / du_lib / xacc2 / xacc.h < prev    next >
C/C++ Source or Header  |  1994-09-14  |  2KB  |  47 lines

  1. /* XACC.H - Routinen zur Behandlung des XACC-Protokolls
  2.             nach der Spezifikation vom 28. November 1992,
  3.             erweitert um Mag!X 2.0 (ap_version == 0x399)
  4.     (c) 1993 Harald Sommerfeldt @ KI im Maus-Netz
  5.     E-Mail:  Harald_Sommerfeldt@ki.maus.de */
  6.  
  7. /*[13/9/94]
  8.     English comments by Craig Graham
  9. */
  10.  
  11. /* XACC - Definitions */
  12. #define ACC_ID        0x400
  13. #define ACC_OPEN    0x401
  14. #define ACC_CLOSE    0x402
  15. #define ACC_ACC        0x403
  16. #define ACC_EXIT    0x404
  17. #define ACC_ACK        0x500
  18. #define ACC_TEXT    0x501
  19. #define ACC_KEY        0x502
  20. #define ACC_META    0x503
  21. #define ACC_IMG        0x504
  22.  
  23.  
  24. #define MAX_XACC 20                    /* Maximum number of Xacc compliant programs supported at once */
  25.  
  26. extern struct xaccs {                /* This structure contains a list available Xacc clients in the system */
  27.     short    id;                            /* ap_id */
  28.     unsigned  groups;                    /* XACC-Group-Wort */
  29.     const char *name;                    /* XACC-Name */
  30. } xaccs[MAX_XACC];
  31.  
  32.  
  33. /* bereitgestellte XACC - Routinen */
  34. short    xacc_init( short menu_id, const char *name, short sizeofname, unsigned groups );
  35. void    xacc_exit( void );
  36. void    *xacc_malloc( long amount );
  37. short    xacc_message( const short *msgbuf );
  38. short    xacc_send( short dest_id, short message, void *addr, long length, short last );
  39. short    xacc_ack( short dest_id, short ok );
  40.  
  41. /* shorterne XACC - Routinen, werden normalerweise nicht ben”tigt */
  42. short    xacc_id( short dest_id, short message );
  43. short    xacc_remid( short id, const short *msgbuf );
  44. short    xacc_killid( short id );
  45. short    xacc_cookie( long cookie, long *value );
  46.  
  47.